package com.dinnerwithfriends.client.dinner.accept;

import com.dinnerwithfriends.client.emails.SendEmail;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;



/** 
 * 
 * 
 * @
 * @Feature 
 */

public class AcceptDinner {

	public AcceptDinner(String user) {

		new SendEmail(user + " Accepted the dinner!");

		RootPanel rootPanel = RootPanel.get();

		rootPanel.clear();

		HTML lblDinnerWith = new HTML(
				"<font size=5 color='gray'>::: DINNER WITH FRIENDS :::</font>");
		rootPanel.add(lblDinnerWith, 53, 10);
		lblDinnerWith.setSize("385px", "66px");

		Label lblFounderLabsJoin = new Label("FOUNDER LABS");
		rootPanel.add(lblFounderLabsJoin, 280, 44);
		lblFounderLabsJoin.setSize("124px", "36px");

		HTML userLabel = new HTML("Thank you " + user
				+ " for joining our dinner this Saturday at 6:30 PM!!");
		rootPanel.add(userLabel, 43, 112);
		userLabel.setSize("469px", "36px");

		HTML hprlnkRestaurant = new HTML(
				"<a href='http://bit.ly/rtO60U' target=_blank>BASIL CANTEEN</a>");
		rootPanel.add(hprlnkRestaurant, 43, 148);

		HTML hprlnkDirections = new HTML(
				"<a href='http://bit.ly/pUWF7w' target=_blank>Directions (Folsom & 11th)</a>");
		rootPanel.add(hprlnkDirections, 43, 175);

		Label lblThisEventIs = new Label("This event is $22 pre-paid.");
		rootPanel.add(lblThisEventIs, 43, 205);

		HTML hprlnkMenu = new HTML(
				"<a href='http://bit.ly/nBy4Sz' target=_blank>MENU</a>");
		rootPanel.add(hprlnkMenu, 43, 229);

		ButtonSendPayment btnPayHere = new ButtonSendPayment(user);
		rootPanel.add(btnPayHere, 43, 285);

	}
}
